package com.sweet.controller;

import com.sweet.Result;
import com.sweet.model.Payment;
import com.sweet.service.IPaymentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
public class PaymentOpenfeignController {
    @Resource
    private IPaymentService paymentService;

    @GetMapping(value = "/consumer/paymentSQL/{id}")
    public Result<Payment> paymentSQL(@PathVariable("id") Long id) {
        return paymentService.paymentSQL(id);
    }
}
